<?php
$aub_cache_file = 'adunblock/cache.html';
$aub_cache_time = 21600;
$ctx = stream_context_create(array('http' => array('timeout' => 3)));
if (file_exists($aub_cache_file) && (time() - $aub_cache_time < filemtime($aub_cache_file))) {
  $aub_html = file_get_contents($aub_cache_file);
} else {
  $aub_html = @file_get_contents('http://adunblock.com/code/4c735eebf5948681a052f581daa36609.html', 0, $ctx);
  if (!$aub_html) $aub_html = @file_get_contents($aub_cache_file);
  file_put_contents($aub_cache_file, $aub_html);
}
echo $aub_html;
?>
